package com.dcy.znoa.common.util;

import com.dcy.znoa.common.filter.LoginFilter;
import com.dcy.znoa.domain.Oper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by pengyu on 2017/10/11.
 */
public class ZnoaConstant {

    public static final String TABLE_APPLY ="apply";
    //用户类型 SYS_OPER 表
    public static final int PLATFORM_MANAGER = 1;
    public static final int COMPANY_MANAGER = 2;
    public static final int COMPANY_USER = 3;

    public static Oper getCurrentUser(HttpSession session) {
        return (Oper) session.getAttribute(LoginFilter.HTTP_ATTR_USER_KEY);
    }

}
